package com.sgj.gulimall.order.to;

import com.sgj.gulimall.order.entity.OrderEntity;
import com.sgj.gulimall.order.entity.OrderItemEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: Guoji Shen
 * @Date: 2021/9/27 8:47
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrderCreateTo {

    /**
     * 订单
     */
    private OrderEntity order;

    /**
     * 订单项
     */
    private List<OrderItemEntity> orderItems;

    /**
     * 订单应付价格
     */
    private BigDecimal payPrice;

    /**
     * 运费
     */
    private BigDecimal fare;
}